﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public class NGONNGUBUS
    {
        public DataTable Bangngonngu()
        {
            DataTable datatable = new DataTable();
            NGONNGUDAO nnDAO = new NGONNGUDAO();
            datatable = nnDAO.Bangngonngu();
            return datatable;
        }
        public int themngonngu(NGONNGUDTO bpDTO)
        {
            NGONNGUDAO bdDAO = new NGONNGUDAO();
            int kq = bdDAO.themngonngu(bpDTO);
            return kq;
        }
        public int update(DataTable datatable, string sqlquery)
        {
            NGONNGUDAO bpDAO = new NGONNGUDAO();
            return bpDAO.update(datatable, sqlquery);
        }
    }
}
